
			;if(getcookie('user')!=undefined){
				let n=getcookie('user');
				$('.loginbar').html(n.substring(0,3)+"***"+n.substring(9));	
				$('.registbar').html('登出');
				$('.registbar').click(function(){
					delcookie('user');
					location.href='login.html';
				}
				)
				$('.loginbar').click(function(){
					location.href='car.html';
				});
				$('.car').click(function(){
				location.href='car.html';
			})
			}
			$('.car').click(function(){
				location.href='login.html';
			})
	 		var oU=document.getElementsByClassName('search_suggest') [0];
			var oI=document.getElementsByClassName('search-key')[0];
			function sss(d){
				var arr=d.data; 
				var h='';
			    if(oI.value!=''){
			    for(var i=0;i<(arr.length>10?10:arr.length);i++){
			    	h+='<li><a href="'+arr[i].href+'">'+'<span>'+arr[i].keyword+'</span>'+'<span class="valuenum">约'+arr[i].count+'件商品</span>'+'</a></li>';
			    }
			    	oU.innerHTML=h;
			   		oU.innerHTML=h;
			    }else{
			    	oU.innerHTML='';
			    }
			}
			oI.oninput=function(){
				oU.style.display='block';
				var k=document.createElement('script');
				k.src="https://search.yohobuy.com/product/search/suggest?callback=sss&keyword="+$('.search-key').val();
				document.body.appendChild(k);
			}
			oI.onblur=function(){
				oU.style.display='none';
			}
			
			

